home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / castools.zip / FUNC15H.ASM < prev    next >
Assembly Source File  |  1990-01-05  |  1KB  |  40 lines

  1. Include multi.inc
  2. Include model.inc
  3.  
  4.  
  5. ;==============================================================================
  6. ;
  7. ;   CAS function 15h -- Submit Single File
  8. ;
  9. ;   Format:
  10. ;               int CASSubmitSingleFile (SFTR *buffer)
  11. ;   Input:
  12. ;               pointer to Single File Transfer Record
  13. ;   Output:
  14. ;               Returns 0 if successful or negative error code
  15. ;==============================================================================
  16.  
  17.                 .CODE
  18. CASSubmitSingleFile     PROC    arg1:PTR WORD
  19.  
  20.                 push    dx              ; save registers
  21.                 push    ds
  22.  
  23.                 mov     ax,MUX          ; load multiplex number
  24.                 mov     ah,al           ; move into ah
  25.                 mov     al,15h          ; CAS function 15
  26.         IF      @DataSize               ; large and medium models
  27.                 lds     dx,arg1         ; pointer to SFTR
  28.         ELSE
  29.                 mov     dx,arg1         ; pointer to SFTR
  30.         ENDIF
  31.                 int     2Fh
  32.  
  33.                 pop     ds              ; restore registers
  34.                 pop     dx
  35.                 ret
  36. CASSubmitSingleFile     endp
  37.  
  38.                 END
  39.  
  40.